package cn.leaf.common.annotation;

import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 *
 * description: feign fallback注解
 *
 * @author twinkle leaf
 * @version v1.0.0
 * @since 2021-11-07 09:31:44
 * slogan: There are no two identical leaves in the world.
 *
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
public @interface Fallback {

    @AliasFor(annotation = Component.class)
    String value() default "";
}
